package com.woniuxy.woniubook.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.woniubook.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.woniubook.entity.User;
import com.woniuxy.woniubook.vo.OrderVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wugd
 * @since 2022-11-16 02:13:11
 */
public interface OrderService extends IService<Order> {

    String addOrder(User user, Long addressId, Long[] bookIds);

    Page<OrderVo> getOrderByPage(Integer now, Integer size, String orderNum, Long id);

    String cancelOrder(long oid);
}
